{extend name="public/base" /}

{block name="title"}<title>提现记录</title>{/block}

{block name="pjax_container"}
<div class="hry-content-wrapper">
    <section class="content-header">
        <ol class="breadcrumb">
            <li>企业端管理</li><li class="active">提现编辑</li>
        </ol>
    </section>
    <section class="content">
        <div class="row">
            <div class="col-md-12">
                <form class="form-horizontal" method="POST" action="" onsubmit="return false" >
                    <div class="nav-tabs-custom">
                        <ul class="nav nav-tabs">
                            <li class="active"><a href="#tab1" data-toggle="tab">提现详情</a></li>
                            <li class="pull-right"><a href="javascript:history.back(-1)" class="btn btn-sm" style="padding:10px 2px;"><i class="fa fa-list"></i> {$Think.lang.back}</a></li>
                        </ul>
                        <div class="tab-content">
                            <div class="tab-pane active" id="tab1">
                                <input type="hidden" name="id" value="{$data.id}" />
                                <input type="hidden" name="company_id" value="{$data.company_id}" />
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">项目方</label>
                                    <div class="col-sm-7"><input class="form-control" disabled="disabled" value="{$data.company_name}" placeholder="{$Think.lang.username}"></div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">订单号</label>
                                    <div class="col-sm-7"><input class="form-control" disabled="disabled" value="{$data.order_num}" placeholder="{$Think.lang.order}"></div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">银行预留手机号</label>
                                    <div class="col-sm-7"><input class="form-control" disabled="disabled" value="{$data.mobile}" placeholder="{$Think.lang.bank_truename}"></div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">开户行</label>
                                    <div class="col-sm-7"><input class="form-control" disabled="disabled" value="{$data.bank_name}" placeholder="{$Think.lang.bank_name}"></div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">银行卡号</label>
                                    <div class="col-sm-7"><input class="form-control" disabled="disabled" value="{$data.bank_num}" placeholder="{$Think.lang.bank_number}"></div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">手机号</label>
                                    <div class="col-sm-7"><input class="form-control" value="{$data.mobile}" name="company_mobile" disabled="disabled" placeholder="{$Think.lang.mobile}"></div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">金额</label>
                                    <div class="col-sm-7"><input class="form-control" value="{$data.money}" name="money" disabled="disabled" placeholder="{$Think.lang.money}"></div>
                                </div>							{if condition="$data.status eq 1"}
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">状态</label>
                                    <div class="col-sm-7">
                                        <select class="form-control" name="status" style="width:100%;" >
                                            <option value="1" {if condition="$data.status eq '1'"}selected="selected"{/if} >待审核</option>
                                            <option value="2" {if condition="$data.status eq '2'"}selected="selected"{/if} >同意</option>
                                            <option value="4" {if condition="$data.status eq '4'"}selected="selected"{/if} >拒绝</option>
                                        </select>
                                    </div>
                                </div>
                                {/if}
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">创建时间</label>
                                    <div class="col-sm-7">
                                        <div class="input-group">
                                            <input class="form-control timepicker" name="create_time" value="{$data.create_time}" disabled="disabled" placeholder="{$Think.lang.date}" >
                                            <div class="input-group-addon"><i class="fa fa-clock-o"></i></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        {if condition="$data.status eq 1"}
                        <div class="box-footer">
                            <div class="col-sm-2"></div>
                            <div class="col-sm-7">
                                <div class="btn-group pull-right">
                                    <button type="submit" class="btn btn-info pull-right submits" data-loading-text="&lt;i class='fa fa-spinner fa-spin '&gt;&lt;/i&gt; {$Think.lang.submit}">{$Think.lang.submit}</button>
                                </div>
                                <div class="btn-group pull-left">
                                    <button type="reset" class="btn btn-warning">{$Think.lang.reset}</button>
                                </div>
                            </div>
                        </div>
                        {/if}

                    </div>
                </form>
            </div>
        </div>
    </section>
</div>
<script type="text/javascript">
    $(function(){
        /*ajax页面加载icheck，有该控件的页面才需要*/
        $('input[type="checkbox"].minimal, input[type="radio"].minimal').iCheck({
            checkboxClass: 'icheckbox_minimal-blue',
            radioClass: 'iradio_minimal-blue'
        });

        $('.timepicker').datetimepicker({
            format: 'YYYY-MM-DD HH:mm:ss',   //YYYY-MM-DD HH:mm:ss
            locale: moment.locale('zh-cn')
        });
        /*ajax页面加载icheck，有该控件的页面才需要*/
        $(".select2").select2({language:"zh-CN"});

        {if condition=" $rest_login == 1 "}
        restlogin('{$rest_login_info}');   //登录超时
        {/if}
        })
</script>
{/block}